class = $class; $this->method = $method; $this->visibility = $visibility; RectorAssert::className($class); } public function getClass() : string { return $this->class; } public function getMethod() : string { return $this->method; } public function getVisibility() : int { return $this->visibility; } }